package com.wbk.lotterysystemuserservice.commons.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StoreApplyBO implements Serializable {

    @ApiModelProperty(value = "用户编号",required = true)
    private Long userNo;

    @ApiModelProperty(value = "商家名称",required = true)
    @NotBlank(message = "商家名称不能为空")
    private String storeName;

    @ApiModelProperty(value = "商家简介",required = true)
    @NotBlank(message = "商家简介不能为空")
    private String storeInfo;

    @ApiModelProperty(value = "法人代表",required = true)
    @NotBlank(message = "法人代表不能为空")
    private String legalName;

    @ApiModelProperty(value = "身份证url",required = true)
    @NotBlank(message = "身份证url不能为空")
    @URL(message = "身份证url必须是一个合法的URL地址！！！")
    private String idCard;

    @ApiModelProperty(value = "营业执照url",required = true)
    @NotBlank(message = "营业执照url不能为空")
    @URL(message = "营业执照url必须是一个合法的URL地址！！！")
    private String storeLicence;

}
